import { View, Image, Text } from "@tarojs/components"

import './index.less'

const TextBar = (props) => {
    const { icon, title } = props;
    return <View className="bar">
        <Image className="icon" src={icon}></Image>
        <Text className="title">{title}</Text>
        <Image className="icon" src={require('../../assets/right.png')}></Image>
    </View>
}

export default TextBar